<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center evaluate_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub evaluate_fd0_0'>
                    <view class='flex flex-wrap align-center evaluate_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  evaluate_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='evaluate_fd0_0_c1_c0'>我的评价</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end evaluate_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex benben-flex-layout flex-wrap align-center evaluate_flex_1">
                <view class='flex flex-direction flex-wrap align-center'>
                    <view class='evaluate_fd1_0_c0'>
                        <text>{{detail.good_rate}}</text>
                        <text>%</text>
                    </view>
                    <text class='evaluate_fd1_0_c1'>好评率</text>
                </view>

                <view class='flex  evaluate_fd1_1'></view>

                <view class='flex flex-wrap align-center flex-sub'>
                    <text class='evaluate_fd1_2_c0'>评价星级</text>
                    <view class='flex flex-wrap align-center'>
                        <template v-for="starNum in [1,2,3,4,5]">
                            <image v-if="detail.score >= starNum" :key="starNum" class='evaluate_star1fd1_2_c1' mode="aspectFit" :src='STATIC_URL+"133.png"'></image>
                            <image v-else :key="starNum" class='evaluate_star1fd1_2_c1' mode="aspectFit" :src='STATIC_URL+"134.png"'></image>
                        </template>
                    </view>
                </view>
            </view>

            <!---flex布局flex布局结束-->
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction align-stretch benben-flex-layout evaluate_flex_2">
                <template v-for='(item,key0) in list'>
                    <view class='flex flex-wrap align-center evaluate_fd2_0' :key='key0'>
                        <image class='evaluate_fd2_0_c0' mode="aspectFill" :src='item.avatar'></image>
                        <view class='flex flex-direction align-stretch flex-sub evaluate_fd2_0_c1'>
                            <view class='flex flex-wrap align-center evaluate_fd2_0_c1_c0'>
                                <text class='evaluate_fd2_0_c1_c0_c0'>{{item.nickname}}</text>
                                <text class='evaluate_fd2_0_c1_c0_c1'>{{item.create_time}}</text>
                            </view>
                            <view class='flex flex-wrap align-center'>
                                <template v-for="starNum in [1,2,3,4,5]">
                                    <image v-if="item.rider_send_star >= starNum" :key="starNum" class='evaluate_star1fd2_0_c1_c1' mode="aspectFit" :src='STATIC_URL+"133.png"'></image>
                                    <image v-else :key="starNum" class='evaluate_star1fd2_0_c1_c1' mode="aspectFit" :src='STATIC_URL+"134.png"'></image>
                                </template>
                            </view>
                        </view>
                    </view>
                </template>
                <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>

            <!---flex布局flex布局结束-->


        </view>
    </page-body>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},
        mixins: [pagingList],

        data() {
            return {
                "minixPagingListsApi": "",
                "pageingListApiMethod": "",
                "allowOnloadGetList": false,
                "list": [],
                "detail": {
                    "aid": "",
                    "rider_id": "",
                    "user_id": "",
                    "score": "",
                    "rider_name": "",
                    "avatar": "",
                    "good_rate": "",
                    "order_number": ""
                },
                "aid": ""
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
            let {
                aid
            } = options
            if (aid !== undefined) this.aid = aid
            this.getxr48a650302052Func()
            this.getrv6715d041d518Func()
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {

        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //获取骑手评价列表
            getxr48a650302052Func() {
                this.minixPagingListsApi = global.apiUrls.post648a650302052;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {}
                this.listData = [];
                this.list = this.listData;
                this.pagingListToggle();

            },
            //用户端/师傅端-查询评价页面骑手头部信息
            async getrv6715d041d518Func() {
                //请求方法
                //数据验证

                let datadetail = await this.$api.get(global.apiUrls.post66715d041d518, {
                    rider_id: this.aid
                });

                if (datadetail.data.code != 1) {
                    this.$message.info(datadetail.data.msg);
                    return
                }
                let infodetail = datadetail.data;
                this.detail = infodetail.data

            },
            pagingListPostData() {
                return this.pagingListPostDataContent
            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: var(--benbenbgColor1);
        background-size: 100% auto;
    }

    .evaluate_flex_0 {
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .evaluate_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 700;
        color: #333333;
        line-height: 50rpx;
    }

    .evaluate_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .evaluate_fd0_0_c0 {
        width: 120rpx;
    }

    .evaluate_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .evaluate_flex_1 {
        border-top: 1px solid rgba(238, 238, 238, 1);
        border-bottom: 16px solid rgba(248, 248, 248, 1);
        padding: 32rpx;
    }

    .evaluate_star1fd1_2_c1 {
        height: 34rpx;
        margin: 0rpx 20rpx 0rpx 5rpx;
        width: 34rpx;
    }

    .evaluate_star1fd1_2_c1 {
        width: 34rpx;
        height: 34rpx;
        border-radius: 0rpx 0rpx 0rpx 0rpx;
        margin: 0rpx 20rpx 0rpx 5rpx;
    }

    .evaluate_fd1_2_c0 {
        margin: 0rpx 24rpx 0rpx 0rpx;
        color: #333333;
        font-size: 32rpx;
        font-weight: 400;
    }

    .evaluate_fd1_1 {
        background: rgba(204, 204, 204, 1);
        width: 1rpx;
        height: 40rpx;
        margin: 0rpx 50rpx 0rpx 50rpx;
        transform: scaleX(0.5);
    }

    .evaluate_fd1_0_c1 {
        color: #333333;
        font-size: 24rpx;
        font-weight: 400;
    }

    .evaluate_fd1_0_c0 {
        font-size: 40rpx;
        font-weight: 500;
        color: #FF8E21;
    }

    .evaluate_flex_2 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .evaluate_star1fd2_0_c1_c1 {
        height: 18rpx;
        margin: 0rpx 5rpx 0rpx 5rpx;
        width: 18rpx;
    }

    .evaluate_star1fd2_0_c1_c1 {
        width: 18rpx;
        height: 18rpx;
        border-radius: 0rpx 0rpx 0rpx 0rpx;
        margin: 0rpx 5rpx 0rpx 5rpx;
    }

    .evaluate_fd2_0_c1_c0_c1 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        margin: 0rpx 0rpx 0rpx auto;
    }

    .evaluate_fd2_0_c1_c0_c0 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 400;
    }

    .evaluate_fd2_0_c1_c0 {
        margin: 0rpx 0rpx 25rpx 0rpx;
    }

    .evaluate_fd2_0_c1 {
        margin: 0rpx 0rpx 0rpx 16rpx;
    }

    .evaluate_fd2_0_c0 {
        width: 88rpx;
        height: 88rpx;
        border-radius: 88rpx;
    }

    .evaluate_fd2_0 {
        border-bottom: 1px solid rgba(238, 238, 238, 1);
        padding: 32rpx 0rpx 32rpx 0rpx;
    }
</style>